 <%@page import="com.game.astd.web.WebUtil"%>
<%@page import="com.game.astd.web.entity.JsonOpt"%>
<%@page import="org.json.JSONObject"%>
<%@page import="org.json.JSONArray"%>
<%@page import="java.io.PrintWriter"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%	
	boolean isLogin = WebUtil.isLogin(request);
	if (!isLogin)
	{
		JsonOpt jsonOpt = new JsonOpt(false);
		jsonOpt.setCode("302");
		response.setContentType(new StringBuilder("text/html; charset=").append("UTF-8").toString());
		out.print(jsonOpt.toString());
		out.close();
		return;
	}else
	{
		
		response.setContentType(new StringBuilder("text/html; charset=").append("UTF-8").toString());
		JsonOpt jsonOpt = WebUtil.saveSetting(request);
		out.print(jsonOpt.toString());
		out.close();
	}
%>